package com.klz.provider.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by kongzheng on 2017/6/21.
 * Created with IntelliJ IDEA.
 */
@RestController
@RequestMapping("api")
public class HelloController {

    @GetMapping("hello")
    public ResponseEntity<String> sayHello(String name) {
        return ResponseEntity.ok("hello " + name + " !");
    }
}
